import Vue from 'vue'
import VueRouter from 'vue-router'


// import MyHome from "../views/MyHome";
// import BrotherCpnComTest from "../views/test1/BrotherCpnComTest";
// import TestParent from "../views/test2/TestParent";

Vue.use(VueRouter)

const routes = [

]
  {
    component: () => import('../views/MyHome'),
    path: "/myhome"
  },
  {
    component: () => import('../views/test1/BrotherCpnComTest'),
    path: '/brother'
  },
  {
    component: () => import('../views/test2/TestParent'),
    path: '/testParent'
  },
  {
    component: () => import('../views/test3/Parent'),
    path: '/testCallChildMethod'
  }
];

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
